import Http from './Http';

export default new Http();

/**
 * 示例

export const getUserList = (data: IData) => {
  return http.post({
    server: DOMAIN_SYSTEM_ENUM.BAIDU,
    url: '/server-name/user/web/list',
    data,
    isCancelDuplicateUrlRequests: true, // 取消重复请求，设置此参数则以 url + method 为 key 做请求标记
    loading: true, // 显示 loading
    // isNotCancel: true, // 不取消重复请求
  });
};

export const getUserInfo = (params: IParams) => {
  return http.get<IUserInfoRes>({
    server: DOMAIN_SYSTEM_ENUM.BAIDU,
    url: '/server-name/user/web/info',
    params,
  });
};


 */
